package com.ruoyi.system.service;

import com.ruoyi.common.core.domain.entity.DangKouUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 食堂档口用户信息表 服务类
 * </p>
 *
 * @author qubaofeng
 * @since 2025-02-05
 */
public interface IDangkouUserService extends IService<DangKouUser> {

    List<DangKouUser> selectUserList(DangKouUser user);

    /**
     * 通过用户ID查询用户
     *
     * @param userId 用户ID
     * @return 用户对象信息
     */
    public DangKouUser selectUserById(Long userId);

    boolean haveUserName(DangKouUser user);

    boolean havePhonenumber(DangKouUser user);

    int insertUser(DangKouUser user);

    int deleteUserByIds(Long[] userIds);

    DangKouUser selectUserByName(String username);
}
